/**************************************菜单栏**************************************/
QMenuBar {
        background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(25, 25, 25, 127), stop:1 rgba(53, 53, 53, 75));
        border-bottom: 2px solid rgba(25, 25, 25, 75);
}

QMenuBar::item {
        padding: 5px 10px 5px 10px;
        background: transparent;
}

QMenuBar::item:enabled:selected {
        background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(106, 106, 106, 255), stop:1 rgba(106, 106, 106, 75));
        border-left: 1px solid rgba(106, 106, 106, 127);
        border-right: 1px solid rgba(106, 106, 106, 127);
}

QMenuBar::item:pressed {
        background-color: palette(highlight);
        border-left: 1px solid rgba(25, 25, 25, 127);
        border-right: 1px solid rgba(25, 25, 25, 127);
}


/**************************************菜单**************************************/
QMenu {
        border: 1px solid rgb(100, 100, 100);
        border-radius:3px;
        background: rgb(68, 69, 73);
}

QMenu::item {
        height: 22px;
        padding: 0px 25px 0px 20px;
}

QMenu::item:selected{
        background-color: rgb(121, 120, 120);
}

QMenu::separator {      /* 菜单子控件separator，定义菜单项之间的分隔线 */
        height: 1px;
        background: rgb(57, 58, 60);
        background: rgb(100, 100, 100);
}

/* QMenu::indicator {
        width: 13px;
        height: 13px;
}

QMenu::icon {
        padding-left: 2px;
        padding-right: 2px;
} */



/**************************************主界面样式**************************************/

QWidget#SIMS {
        border: 1px solid rgb(50, 50, 50);
        background: rgb(48, 46, 46);
}


/**************************************页签项**************************************/
QTabWidget::pane{
  background-color:rgba(88, 86, 86, 0.5);
  border-top:1px solid rgba(25,25,25,50%);
}
QTabWidget::tab-bar{
  left:3px;
  top:1px;
}
QTabBar{
  background-color:transparent;
  qproperty-drawBase:0;
  border-bottom:1px solid rgba(25,25,25,50%);
}
QTabBar::tab{
  color: white;
  padding:4px 6px;
  background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,0.5),stop:1 rgba(53,53,53,0.5));
  border:1px solid rgba(25,25,25,75);
  border-top-left-radius:4px;
  border-top-right-radius:4px;
}
QTabBar::tab:selected,QTabBar::tab:hover{
  background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(154, 152, 152,0.5),stop:1 rgba(88, 86, 86,50%));
  border-bottom-color:rgba(66,66,66,75%);
}
QTabBar::tab:selected{
  border-bottom:2px solid palette(highlight);
}
QTabBar::tab::selected:disabled{
  border-bottom:2px solid rgb(127,127,127);
}
QTabBar::tab:!selected{
  margin-top:2px;
}
QTabBar::close-button{
        border-image: url(:/res/close-bold.png);
}
QTabBar::close-button:hover{
        border-image: url(:/res/close-bold-red.png);
}


/*QTabWidget::pane {
        border: none;
        border-top: 3px solid rgb(0, 160, 230);
        background: rgb(57, 58, 60);
}

QTabWidget::tab-bar {
        border: none;
}

QTabBar::tab {
        border: none;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        color: rgb(175, 175, 175);
        background: rgb(255, 255, 255, 30);
        height: 28px;
        min-width: 85px;
        margin-right: 5px;
        padding-left: 5px;
        padding-right: 5px;
}

QTabBar::tab:hover {
        color: white;
        background: rgb(0, 160, 230);

}

QTabBar::tab:selected {
        color: white;
        background: rgb(0, 160, 230);
        background: rgb(57, 58, 60);
}

QTabWidget#tabWidget::pane {
        border: 1px solid rgb(45, 45, 45);
        background: rgb(57, 58, 60);
        margin-top: -1px;
}

QTabBar#tabBar::tab {
        border: 1px solid rgb(45, 45, 45);
        border-bottom: none;
        background: transparent;
}

QTabBar#tabBar::tab:hover {
        color: white;
}

QTabBar#tabBar::tab:selected {
        color: white;
        background: rgb(57, 58, 60);
}*/



/**************************************表格**************************************/
QHeaderView {
        border: none;
        border-bottom: 3px solid rgb(0, 160, 230);
        background-color: qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 rgba(25, 25, 25, 127), stop:1 rgba(53, 53, 53, 75));
        min-height: 30px;
}

QHeaderView::section {
        background-color: qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 rgba(25, 25, 25, 127), stop:1 rgba(53, 53, 53, 75));
        border-style: none;
        border-bottom: 1px solid palette(dark);
        padding-left: 5px;
        padding-right: 5px;
}

QHeaderView::section:horizontal {
        border: none;
        color: white;
        background: transparent;
        padding-left: 5px;
}

QHeaderView::section:horizontal:hover {
        background: rgb(0, 160, 230);
}

QHeaderView::section:vertical:hover{
        background: rgb(0, 160, 230);
}

/* QHeaderView::section:horizontal:pressed {
        background: rgb(0, 180, 255);
} */

QTableView {
        alternate-background-color: palette(window);
        background: palette(base);
        align-items: center;
}

QTableView::item:selected:disabled {
        background: rgb(80, 80, 80);
}
/* QTableView {
        border: 1px solid rgb(45, 45, 45);
        background: rgb(46, 46, 48);
        gridline-color: rgb(60, 60, 60);
}

QTableView::item {
        padding-left: 5px;
        padding-right: 5px;
        border: none;
        background: rgb(72, 72, 74);
        border-right: 1px solid rgb(45, 45, 45);
        border-bottom: 1px solid rgb(45, 45, 45);
}

QTableView::item:selected {
        background: rgba(255, 255, 255, 40);
}

QTableView::item:selected:blank {
        color: white;
}

QTableView::indicator {
        width: 20px;
        height: 20px;
} */


/**************************************滚动条**************************************/
QScrollBar:vertical {
        background: palette(base);
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        width: 16px;
        margin: 0px;
}

QScrollBar::handle:vertical {
        background-color: palette(alternate-base);
        border-radius: 2px;
        min-height: 20px;
        margin: 2px 4px 2px 4px;
}

QScrollBar::handle:vertical:hover {
        background-color: palette(highlight);
}

QScrollBar::add-line:vertical {
        background: none;
        height: 0px;
        subcontrol-position: right;
        subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical {
        background: none;
        height: 0px;
        subcontrol-position: left;
        subcontrol-origin: margin;
}

QScrollBar:horizontal {
        background: palette(base);
        height: 16px;
        margin: 0px;
}

QScrollBar::handle:horizontal {
        background-color: palette(alternate-base);
        border-radius: 2px;
        min-width: 20px;
        margin: 4px 2px 4px 2px;
}

QScrollBar::handle:horizontal:hover {
        background-color: palette(highlight);
}

QScrollBar::add-line:horizontal {
        background: none;
        width: 0px;
        subcontrol-position: bottom;
        subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal {
        background: none;
        width: 0px;
        subcontrol-position: top;
        subcontrol-origin: margin;
}


/**************************************按钮**************************************/

QPushButton::hover{
        border-radius: 5px;
        border:1px solid rgb(0, 160, 230);
}

QToolButton::hover{
        color: rgb(0, 160, 230);
}


/**************************************搜索框**************************************/
QPushButton#searchButton,QLineEdit{
        border: none;
        border-radius: 0px;
        background-color:rgba(19, 19, 19, 0.5);
}

QFrame#searchframe::hover{
        border-radius: 0px;
        border: 1px solid rgb(0, 160, 230);
}




/**************************************状态栏（窗口最下方空间）**************************************/
QStatusBar {
        background: rgb(57, 58, 60);
}

QStatusBar::item {
        border: none;
        border-right: 1px solid rgb(100, 100, 100);
}
